//
// Created by francklinson on 2021/11/18 AT 10:34.
// May Saint Diana bless you!
//

#include <iostream>
#include <vector>
#include <string>

using namespace std;

class Solution {
public:
    bool squareIsWhite(string coordinates) {
        string odd{"aceg"}; // 奇数列
        if (odd.find(coordinates[0]) != string::npos) {
            return coordinates[1] % 2 == 0;
        } else {
            return coordinates[1] % 2 != 0;
        }

    }
};

int main() {
    Solution solution;
    cout << solution.squareIsWhite("a1") << endl;
    cout << solution.squareIsWhite("h3") << endl;
    cout << solution.squareIsWhite("c7") << endl;
    return 0;
}

